#!/bin/sh

for d in bdftopcf mkfontdir; do
	type $d || exit 1
done

for x in ../bdf/*.bdf; do
	echo "converting $x to pcf"
	name="${x##*/}"
	bdftopcf -o ${name%.*}.pcf $x
done

echo "zipping all pcf fonts"
gzip -v *.pcf

echo "Creating fonts.dir"
mkfontdir
